]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
loginDialog: Use GLib instead of Mainloop for timeout
authorverdre <gitlab@v0yd.nl>
Tue, 17 Apr 2018 14:43:06 +0000 (16:43 +0200)
committerverdre <gitlab@v0yd.nl>
Thu, 19 Apr 2018 07:08:45 +0000 (09:08 +0200)
imports.mainloop is deprecated

js/gdm/loginDialog.js

index 4cb79664cfd72fab43dc82f4cca64ffd23f2ab01..dc5eaa2354f07d338915a6a0fabe123ad8bde86a 100644 (file)
@@ -25,7 +25,6 @@ const GLib = imports.gi.GLib;
 const GObject = imports.gi.GObject;
 const Gtk = imports.gi.Gtk;
 const Lang = imports.lang;
-const Mainloop = imports.mainloop;
 const Meta = imports.gi.Meta;
 const Pango = imports.gi.Pango;
 const Shell = imports.gi.Shell;
@@ -1008,7 +1007,7 @@ var LoginDialog = new Lang.Class({
 
         let hold = new Batch.Hold();
 
-        this._timedLoginIdleTimeOutId = Mainloop.timeout_add_seconds(_TIMED_LOGIN_IDLE_THRESHOLD,
+        this._timedLoginIdleTimeOutId = GLib.timeout_add_seconds(GLib.PRIORITY_DEFAULT, _TIMED_LOGIN_IDLE_THRESHOLD,
             () => {
                 this._timedLoginAnimationTime -= _TIMED_LOGIN_IDLE_THRESHOLD;
                 hold.release();